package com.banyuan;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;

public class OutputDemo1 {
    public static void main(String[] args) {
        OutputStream os = null;
        try {
            os = new FileOutputStream("/Users/edy/Desktop/file/1.txt",true);
            String a = "地球人123地球人地球人地球人地球人俄飞机的飞机";
            os.write(a.getBytes());
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            IOUtilis.closeQuiety(os);
        }


    }
}
